package com.baichuan.zntx.domain;

import com.baichuan.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;

import java.io.Serial;

/**
 * 智能铁鞋对象 t_device
 *
 * @author Baichuan
 * @date 2024-05-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_device")
public class Device extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(value = "id")
    private String id;

    /**
     * 设备编号
     */
    private String deviceId;

    /**
     * 设备状态
     */
    private Integer status;

    /**
     * 纬度
     */
    private double latitude;

    /**
     * 经度
     */
    private double longtitude;

    /**
     * 电量
     */
    private double energy;

    /**
     * 姿态-X
     */
    private double posX;

    /**
     * 姿态-Y
     */
    private double posY;

    /**
     * 姿态-Z
     */
    private double posZ;

    /**
     * 加速度
     */
    private double accelerate;

    /**
     * 铁轨贴实
     */
    private Boolean track;

    /**
     * 车轮
     */
    private Boolean wheel;

    /**
     * rfid标签
     */
    private Boolean hasRfid;

    /**
     *
     */
    @TableLogic(delval = "1", value = "0")
    private Integer deleteFlag;

    /**
     * 卫星定位状态
     */
    private Integer gpsStatus;

    private String rfid;

    private double energyAlert;

    private String region;
    private Integer taskDuration;
    private String deviceName;
}
